﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DoLink.aspx.cs" Inherits="webadmin_DoLink" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link type="text/css" href="css/style.css" rel="stylesheet" />
    <script type="text/javascript" src="../js/jquery.js"></script>
    <script type="text/javascript" src="js/lib.js"></script>
    <script type="text/javascript">
        $(function () { BindBtn(); $("#txtName").focus(); });
        function CheckInput() {
            var name = $("#txtName");
            if ($.isEmpty(name.val())) {
                alert("请输入名称！");
                name.focus();
                return false;
            }
            return true;
        }
        function ResetPage() {
            top.$("#DialogIframe").dialog('close');
            var btn = top.$("#mainFrame").contents().find("#btnReset");
            $(btn).click();
        }
    </script>
</head>
<body>
     <form id="form1" runat="server">
    <div id="conBox">
        <table class="dialogTable">
            <tr>
                <th>
                    名称：
                </th>
                <td>
                    <asp:TextBox ID="txtName" runat="server" CssClass="txtbox"></asp:TextBox>
                    <span>*</span>
                </td>
            </tr>
            <tr>
                <th>
                    链接地址：
                </th>
                <td>
                    <asp:TextBox ID="txtLink" runat="server" CssClass="txtbox" Text="http://"></asp:TextBox>
                </td>
            </tr>
            <tr id="logoDiv" runat="server" visible="false">
                <th>
                    图片：
                </th>
                <td>
                    <div>
                        <asp:HiddenField ID="hfImg" runat="server" />
                        <asp:FileUpload ID="fuImg" runat="server" size="24" />
                        <span>* </span>
                    </div>
                </td>
            </tr>
            <tr id="logoSizeDiv" runat="server" visible="false">
                <th></th>
                <td><span>(图片大小不超过<%=strImgSize %>,建议图片像素：<%=strImgPix %>)</span></td>
            </tr>
            <tr id="ImgDiv" runat="server" visible="false">
                <th> &nbsp;</th>
                <td>
                    <asp:Image ID="imgAdver" runat="server" style="width:54px;height:54px;" />
                </td>
            </tr>
            <tr>
                <td style="line-height: 30px;" colspan="2" align="center">
                    <asp:Button ID="btnSubmit" runat="server" Text="提 交" OnClientClick="return CheckInput();"
                        OnClick="btnSubmit_Click" CssClass="button" />
                    <input type="reset" class="button" value="关 闭" onclick="top.$('#DialogIframe').dialog('close');" />
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
